//
//  NotificationModel.swift
//  ezyform
//
//  Created by Hubert on 2022/6/13.
//  Copyright © 2022 Client.Solution Pty Ltd. All rights reserved.
//

import UIKit
import HandyJSON

enum notificationType: String, HandyJSONEnum {
    case job_list = "job_list"
    case service_job_list = "service_job_list"
    case notification_list = "notification_list"
    case service_job_detail = "service_job_detail"
    case job_detail = "job_detail"
    case notification_detail = "notification_detail"
    case installer_point_list = "installer_point_list"
}

enum sendMode: String, HandyJSONEnum {
    case important = "important"
    case normal = "normal"
}
class NotificationPushModel: HandyJSON {
    var notifity_type: notificationType = .job_list
    var notifity_id: String = ""
    var fromForgroundFlag: Bool = false//true标识APP在前台收到通知，false标识在消息栏或APP未启动时打开通知
    var send_mode: sendMode = .normal
    var title: String = ""//消息通知标题
    var summary: String = ""//消息通知summary
    required init(){}
}
class NotificationModel: HandyJSON {
    var id: String = ""
    var subject: String = ""
    var notification_type: String = ""
    var notification_type_human: String = ""
    var summary: String = ""
    var send_mode: sendMode = .normal
    var read_id: String = ""
    var created_at: String = ""
    var is_read: Bool = false
    var content: String = ""
    required init(){}
}

class NotificationUnreadModel: HandyJSON {
    var unread_count: String = ""
    required init(){}
}
